<div id="category-manage-view">
  <div class="pageheader">
    <h2><i class="fa fa-home"></i>公寓管理</h2>
    <div class="al-header-right">
      <button type="button" class="btn btn-primary" ng-if="storeAu==undefined"
              ng-click="newData()">新建项目</button>
    </div>
  </div>
  <div class="page">
    <div class="al-list-container">
      <form class="form-horizontal al-search-container" role="form">
        <div class="form-group">
          <label class="control-label col-sm-1">城市</label>
          <div class="col-sm-2">
            <select ng-model="search.city" class="form-control">
              <option label="全部" value="">全部</option>
              <option label="上海" value="310100">上海</option>
              <option label="杭州" value="330100">杭州</option>
            </select>
          </div>
          <label class="col-sm-1 control-label">名称</label>
          <div class="col-sm-2">
            <input class="form-control" ng-model="search.name" type="text" placeholder="" maxlength="32"/>
          </div>
          <label class="col-sm-1 control-label">状态</label>
          <div class="col-sm-3">
            <nobr>
              <label class="ui-radio">
                <input name="status" ng-value="true" type="radio" ng-model="search.enabled">
                <span>启用</span>
              </label>
            </nobr>
            <nobr>
              <label class="ui-radio">
                <input name="status" ng-value="false" type="radio" ng-model="search.enabled">
                <span>禁用</span>
              </label>
            </nobr>
          </div>
          <div class="col-sm-1">
            <button type="button" ng-click="queryData()" class="btn btn-success al-float-right">查询</button>
          </div>
          <div class="col-sm-1">
            <button type="button" ng-click="resetSearch()" class="btn btn-default">重置</button>
          </div>
        </div>
      </form>
      <table ng-table="tableParams"
             class="table  table-bordered table-striped table-condensed al-table-container">
        <thead>
        <tr>
          <td>城市</td>
          <td>名称</td>
          <td>编号</td>
          <td>起订价格</td>
          <td>联系电话</td>
          <!--<td>封面图</td>-->
          <td>地址</td>
          <td>物业费</td>
          <td>状态</td>
          <td>管理</td>
          <td>操作</td>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in $data">
          <td>{{item.cityName}}</td>
          <td>{{item.name}}</td>
          <td>{{item.uuid}}</td>
          <td>{{item.minPrice}}</td>
          <td>{{item.tel}}</td>
          <!--<td><img ng-if="item.thumb" ng-src="{{item.thumb}}" width="80px" height="80px"/></td>-->
          <td>{{item.address}}</td>
          <td>{{item.manageFee}}</td>
          <td>{{item.enabled|constantTransfer:enabledList}}</td>
          <td>
            <button class="btn btn-success btn-sm" ng-click="configUnit(item)">项目配置</button>
            <button class="btn btn-primary btn-sm" ng-click="goHouseList(item)">房间列表</button>
          </td>
          <td>
            <button class="btn btn-warning btn-sm" ng-click="editData(item)">编辑</button>
            <button class="btn btn-info btn-sm" ng-click="configLayout(item)">项目房型</button>
            <button class="btn btn-primary btn-sm" ng-click="configPicture(item)">项目图片</button>
            <button class="btn btn-success btn-sm" ng-click="editConfigure(item)">配套设施</button>
            <!--<button class="btn btn-danger btn-sm" ng-confirm-click="确定要删除这个公寓吗？" ng-click="removeData(item)">删除</button>-->
          </td>
        </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
